<script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>

<script type="text/javascript">
  $(document).ready(function(){
    
    $('a').click(function(){
      alert("I am clicked");
    });
  });
</script>

<a href="#">Click Here</a></p>